package com.yazi.mxz.common.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.myframework.smhj.hibernate.Searching;
import com.myframework.smhj.hibernate.dao.BasicService;
import com.myframework.smhj.hibernate.dao.Dao;
import com.yazi.mxz.common.db.dao.GoodsReportViewDao;
import com.yazi.mxz.common.entity.beans.Address;
import com.yazi.mxz.common.entity.custom.GoodsReportView;
import com.yazi.mxz.common.service.GoodsReportViewService;

@Repository("goodsReportViewService")
public class GoodsReportViewServiceImpl extends BasicService<GoodsReportView> implements GoodsReportViewService {

	@Resource
	GoodsReportViewDao goodsReportViewDao;

	@Override
	protected Dao<GoodsReportView> getDao() {
		return goodsReportViewDao;
	}

	@Override
	public List<GoodsReportView> listRevenueByCompanyId4Goods(long companyId, long startTime,
			long endTime, Searching si) {
		return goodsReportViewDao.listRevenueByCompanyId4Goods(companyId, startTime, endTime, si);
	}

	@Override
	public List<GoodsReportView> listLossByCompanyId4Goods(long companyId, long startTime,
			long endTime, Searching si) {
		return goodsReportViewDao.listLossByCompanyId4Goods(companyId, startTime, endTime, si);
	}
	
	@Override
	public List<GoodsReportView> listByCompanyId4Store(long companyId, long startTime,
			long endTime, Searching si) {
		return goodsReportViewDao.listByCompanyId4Store(companyId, startTime, endTime, si);
	}

	@Override
	public List<GoodsReportView> sumByCompanyId(long companyId, long startTime, long endTime) {
		return goodsReportViewDao.sumByCompanyId(companyId, startTime, endTime);
	}

	@Override
	public List<GoodsReportView> listRevenueByCompanyId4Day(long companyId, long startTime,
			long endTime, Searching si) {
		return goodsReportViewDao.listRevenueByCompanyId4Day(companyId, startTime, endTime, si);
	}

	@Override
	public List<GoodsReportView> listRevenueByStoreId4Goods(long storeId, long startTime,
			long endTime, Searching si) {
		return goodsReportViewDao.listRevenueByStoreId4Goods(storeId, startTime, endTime, si);
	}

	@Override
	public List<GoodsReportView> listLossByStoreId4Goods(long storeId, long startTime,
			long endTime, Searching si) {
		return goodsReportViewDao.listLossByStoreId4Goods(storeId, startTime, endTime, si);
	}

	@Override
	public List<GoodsReportView> listByStoreId4Checker(long storeId, long startTime, long endTime,
			Searching si) {
		return goodsReportViewDao.listByStoreId4Checker(storeId, startTime, endTime, si);
	}

	@Override
	public List<GoodsReportView> sumByStoreId(long storeId, long startTime, long endTime) {
		return goodsReportViewDao.sumByStoreId(storeId, startTime, endTime);
	}

	@Override
	public List<GoodsReportView> listRevenueByStoreId4Day(long storeId, long startTime, long endTime,
			Searching si) {
		return goodsReportViewDao.listRevenueByStoreId4Day(storeId, startTime, endTime, si);
	}

}
